home *** CD-ROM | disk | FTP | other *** search
- Calling 32-bit DLL's built with Borland C++ from non-BC Apps
- ============================================================
- Currently, Borland C++ supports calling a DLL compiled with Borland C++ from
- applications created with other tools only if they are dynamically bound to the
- DLL. This is achieved by the application calling LoadLibrary at run-time to load
- the DLL and then calling GetProcAddress to retrieve the entry points for the
- functions exported from the DLL.
-
- Static binding is not supported. From a C or C++ application, static binding is
- achieved by linking import records (either import libraries or entries in the
- IMPORTS section of the application's Module Definition File) to the calling
- application.
-
- Using Delphi 2.0, static binding is achieved using a declaration such as:
- function Foo(parm: Integer): Integer; stdcall; external 'my.dll' name 'Foo';
-
- - and using Microsoft Visual Basic:
- Private Declare Function Foo Lib "my.dll" (ByVal parm As Integer) As Integer
-
-
-